﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
	<base href="<%=basePath%>">
	<!-- jsp文件头和头部 -->
	<%@ include file="../../system/main/main_top.jsp"%> 
	<link rel="stylesheet" media="screen" type="text/css" href="static/select2-js/select2.css" />
	</head> 
<body>
<div id="centerOfMainFrame">
<div id="page-content" class="clearfix">
			<!-- 检索  -->
			<form action="gift/exchange/listExchange.do" method="post" name="giftExchangeForm" id="giftExchangeForm">
			<input type="hidden" name="gift_id" id="gift_id" value="${pageData.gift_id }"/>
			<table id="table_report" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>序号</th>
						<th>兑换码</th>
						<th>礼品编号</th>
						<th>礼品名称</th>
						<th>兑换积分</th>
						<th>兑换数量</th>
						<th>联系电话</th>
						<th>会员昵称</th>
						<th>兑换时间</th>
						<th>兑换状态</th>
						<th>兑换方式</th>
						<th>操作员</th>
						<th>操作时间</th>
					</tr>
				</thead>
										
				<tbody>
				<!-- 开始循环 -->	
				<c:choose>
					<c:when test="${not empty varList}">
						<c:forEach items="${varList}" var="var" varStatus="vs">
							<tr>
								<td class='center' style="width: 30px;">${vs.index+1}</td>
								<td>${var.order_no}</td>
								<td>${var.gift_id }</td>
								<td>${var.gift_id_name }</td>
								<td>${var.total_ex_rose_mun }</td>
								<td>${var.quantity }</td>
								<td>${var.contact_mobile }</td>
								<td>${var.m_id_name }</td>
								<td><fmt:formatDate value="${var.create_time }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
								<td>${var.status_name }</td>
								<td>${var.exchange_way_name }</td>
								<td>${var.operator_name }</td>
								<td><fmt:formatDate value="${var.operate_time }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							</tr>
						</c:forEach>
					</c:when>
					<c:otherwise>
						<tr class="main_info">
							<td colspan="100" class="center" >没有相关数据</td>
						</tr>
					</c:otherwise>
				</c:choose>
				</tbody>
			</table>
			
			<div class="page-header position-relative">
				<table style="width:100%;">
					<tr>
						<td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
					</tr>
				</table>
			</div>
		</form>
	</div>
	<!-- PAGE CONTENT ENDS HERE -->
  </div><!--/row-->
<div id="centerOfMainFrame2" class="center" style="display: none">
	<img src="static/images/jzx.gif" style="width: 50px;" /><br />
</div>
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="static/js/ace-elements.min.js"></script>
		<script type="text/javascript" src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 单选框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript" src="static/js/bootbox.min.js"></script><!-- 确认窗口 -->
		<script type="text/javascript" src="static/select2-js/select2.js"></script>
		<script type="text/javascript" src="static/select2-js/select2.min.js"></script>
		<script type="text/javascript" src="static/select2-js/select2_locale_zh-CN.js"></script>
		<!-- 引入 -->
		
		<script type="text/javascript">
		$(top.hangge());
		
		//检索
		function search(){
			$("#giftExchangeForm").submit();
		}
		</script>
	</body>
</html>

